import service from '@/utils/request'
export function fetchMovieList(movie_type, params) {
    return service({
        url: '/v2/movie/' + movie_type,
        method: 'get',
        params: params
    })
}

export function searchMovies(params, cancelToken) {
    return service({
        url: '/v2/movie/search',
        method: 'get',
        params: params,
        cancelToken: cancelToken
    })
}